package classi;

import interfacce.AccountManager;

import java.rmi.RMISecurityManager;

import javax.naming.Context;
import javax.naming.InitialContext;

public class Client {
	
	public static void main(String[] args) {
	
	System.setProperty("java.security.policy", "client.policy");
	System.setSecurityManager(new RMISecurityManager());

	String url = "rmi://localhost/"; // prefisso url della macchina remota del server
	AccountManager accountManager = null;
	
	
	try{
		
		Context naming = new InitialContext();
		accountManager = (AccountManager) naming.lookup(url + "rmi:accountmanager"); //TODO da provare ma dovrebbe funzionare
	}//try
	catch (Exception e) {
		e.printStackTrace();
	}

	}//main

}//classe
